package com.thwj.project.biz.domain;

    import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.thwj.common.annotation.Excel;
import lombok.*;

import java.io.Serializable;

;

/**
 * 活动分类对象 biz_activity_category
 *
 * @author generate
 * @date 2023-06-16
 */

@Getter
@Setter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("biz_activity_category")
public class ActivityCategory extends Model<ActivityCategory>{
private static final long serialVersionUID=1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 分类名称 */
            @Excel(name = "分类名称")
    private String name;

    /** 分类icon小图 */
            @Excel(name = "分类icon小图")
    private String iconPic;

    /** 模板大图 */
            @Excel(name = "模板大图")
    private String templatePic;

    /** 排序权重（数值越大越靠前） */
            @Excel(name = "排序权重", readConverterExp = "数=值越大越靠前")
    private Integer orderWeight;

    /**
     * 名称专属商家
     */
    private String nameForMerchant;

    /** 是否有效 */
            @Excel(name = "是否有效")
    private Boolean valid;




    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
